package com.mz.mattress.client.timer.impl;

import com.mz.mattress.client.timer.TimerTask;
import org.springframework.stereotype.Component;

//@Component
public class SessionTask implements TimerTask {

    @Override
    public boolean canDo() {
        return true;
    }

    @Override
    public void run() {
        System.out.println("aa_run");
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
